import request from "./uniHttp"


export const proStuLogin = (data) => {
	return request({
		url: '/api/sczx/user/authentication/userBaseLogin',
		data:data 
	})
}

// 学生登录
export const stuLogin = (data) => {
	return request({
		url: '/api/sczx/user/authentication/stuLogin',
		data: data,
	})
}


//获取学生用户信息
export const stuInfo = () => {
	return request({
		url: '/api/sczx/user/authentication/getAuthStuInfoDetail',

	})
}

// 通用登录
export const userLogin = (data) => {
	return request({
		url: '/api/sczx/user/authentication/login',
		data: data,
	})
}
// 修改密码 
export const edit = (oldPwd, newPwd, rePwd) => {
	return request({
		url: '/api/sczx/user/stuInfo/modifyPwsBySelf',
		data: {
			oldPwd,
			newPwd,
			rePwd
		},
	})
}